package gov.bls.ncs.orsdb.service;

import gov.bls.ncs.orsdb.vos.physical.PhysicalByOccVO;
import gov.bls.ncs.orsdb.vos.physical.PhysicalIncOfReqByOccGrpVO;
import gov.bls.ncs.orsdb.vos.physical.PhysicalReqByOccGrpVO;

import java.util.ArrayList;

import org.springframework.stereotype.Service;

@Service("PhysEnvService")
public class PhysEnvService {
	
	

	/*public ArrayList<PhysEnvByOccVO> getPhysEnvoverheadList() {
		
		ArrayList<PhysEnvByOccVO> pEByOcList = new ArrayList<>();
		ArrayList<PhysEnvByOccVO> physEnvByOccList;
		physEnvByOccList = getPhysEnvByOccList();
		
		
		
		for (PhysEnvByOccVO physEnvByOccVO : physEnvByOccList) {
		
			if(physEnvByOccVO.getOccupationalGrpPercent()>=50){
				
				pEByOcList.add(physEnvByOccVO);
				
			}
			
		}

		return physEnvByOccList;
		
	}
	*/
	
	
	
	
	
	
	

	public ArrayList<PhysicalByOccVO> getPhysEnvByOccList() {
	
		ArrayList<PhysicalByOccVO> pEByOcList = new ArrayList<>();
		
		PhysicalByOccVO obj1 = new PhysicalByOccVO("All workers", 100);
		pEByOcList.add(obj1);
		PhysicalByOccVO obj2 = new PhysicalByOccVO("Management, professional, and related", 40);
		pEByOcList.add(obj2);

		PhysicalByOccVO obj19 = new PhysicalByOccVO("Management, business, and financial", 59);
		pEByOcList.add(obj19);
		
		PhysicalByOccVO obj3 = new PhysicalByOccVO("Professional and related", 60);
		pEByOcList.add(obj3);
		PhysicalByOccVO obj4 = new PhysicalByOccVO("Teachers", 59);
		pEByOcList.add(obj4);
		PhysicalByOccVO obj5 = new PhysicalByOccVO("Primary, secondary, and special education school teachers", 51);
		pEByOcList.add(obj5);

		PhysicalByOccVO obj6 = new PhysicalByOccVO("Registered nurses", 49);
		pEByOcList.add(obj6);
		PhysicalByOccVO obj7 = new PhysicalByOccVO("Service", 0);
		pEByOcList.add(obj7);
		PhysicalByOccVO obj8 = new PhysicalByOccVO("Protective service", 26);
		pEByOcList.add(obj8);
		
		PhysicalByOccVO obj9 = new PhysicalByOccVO("Sales and office", 72);
		pEByOcList.add(obj9);
		PhysicalByOccVO obj10 = new PhysicalByOccVO("Sales and related", 62);
		pEByOcList.add(obj10);
		PhysicalByOccVO obj11 = new PhysicalByOccVO("Office and administrative support", 54);
		pEByOcList.add(obj11);
		
		PhysicalByOccVO obj12 = new PhysicalByOccVO("Natural resources, construction, and maintenance nurses", 71);
		pEByOcList.add(obj12);
		PhysicalByOccVO obj13 = new PhysicalByOccVO("Construction, extraction, farming,fishing, and forestry", 38);
		pEByOcList.add(obj13);
		PhysicalByOccVO obj14 = new PhysicalByOccVO("Installation, maintenance, and repair", 53);
		pEByOcList.add(obj14);
		
		PhysicalByOccVO obj16 = new PhysicalByOccVO(" Production, transportation, and material moving", 60);
		pEByOcList.add(obj16);
		PhysicalByOccVO obj17 = new PhysicalByOccVO("Production", 84);
		pEByOcList.add(obj17);
		PhysicalByOccVO obj18 = new PhysicalByOccVO("Transportation and material moving", 65);
		pEByOcList.add(obj18);
		
		return pEByOcList;
	}
	

	public ArrayList<PhysicalIncOfReqByOccGrpVO> getPhysEnvIncOfReqByOccGrpList() {
	
		ArrayList<PhysicalIncOfReqByOccGrpVO> pEIncOfReqByOcList = new ArrayList<>();
		
		PhysicalIncOfReqByOccGrpVO obj1 = new PhysicalIncOfReqByOccGrpVO("Architechture and Engineering", 82, 18, 0, 0, 0);
		pEIncOfReqByOcList.add(obj1);

		PhysicalIncOfReqByOccGrpVO obj2 = new PhysicalIncOfReqByOccGrpVO("Management, professional, and related", 63, 25, 13, 0, 0);
		pEIncOfReqByOcList.add(obj2);

		PhysicalIncOfReqByOccGrpVO obj3 = new PhysicalIncOfReqByOccGrpVO("Professional and related", 80, 7, 13, 0, 0);
		pEIncOfReqByOcList.add(obj3);

		PhysicalIncOfReqByOccGrpVO obj4 = new PhysicalIncOfReqByOccGrpVO("Teachers", 5, 68, 0, 16, 0);
		pEIncOfReqByOcList.add(obj4);

		PhysicalIncOfReqByOccGrpVO obj5 = new PhysicalIncOfReqByOccGrpVO("Primary, secondary, and special education school teachers", 85, 15, 0, 0, 0);
		pEIncOfReqByOcList.add(obj5);

		PhysicalIncOfReqByOccGrpVO obj6 = new PhysicalIncOfReqByOccGrpVO("Registered nurses", 64, 29, 7, 0, 0);
		pEIncOfReqByOcList.add(obj6);

		PhysicalIncOfReqByOccGrpVO obj7 = new PhysicalIncOfReqByOccGrpVO("Service", 0, 0,55,45, 0);
		pEIncOfReqByOcList.add(obj7);

		PhysicalIncOfReqByOccGrpVO obj8 = new PhysicalIncOfReqByOccGrpVO("Protective service", 32, 55,13, 0, 0);
		pEIncOfReqByOcList.add(obj8);

		PhysicalIncOfReqByOccGrpVO obj9 = new PhysicalIncOfReqByOccGrpVO("Sales and office", 0, 0, 43,57, 0);
		pEIncOfReqByOcList.add(obj9);

		PhysicalIncOfReqByOccGrpVO obj10 = new PhysicalIncOfReqByOccGrpVO("Sales and related", 34, 44, 0, 15, 7);
		pEIncOfReqByOcList.add(obj10);

		PhysicalIncOfReqByOccGrpVO obj11 = new PhysicalIncOfReqByOccGrpVO("Office and administrative support", 47, 33, 17, 0, 0);
		pEIncOfReqByOcList.add(obj11);

		PhysicalIncOfReqByOccGrpVO obj12 = new PhysicalIncOfReqByOccGrpVO("Natural resources, construction, and maintenance nurses", 16, 47, 37, 0, 0);
		pEIncOfReqByOcList.add(obj12);
		

		PhysicalIncOfReqByOccGrpVO obj13 = new PhysicalIncOfReqByOccGrpVO("Construction, extraction, farming,fishing, and forestry", 82, 9, 0, 9, 0);
		pEIncOfReqByOcList.add(obj13);
		

		PhysicalIncOfReqByOccGrpVO obj14 = new PhysicalIncOfReqByOccGrpVO("Installation, maintenance, and repair", 40, 18, 0, 21, 21);
		pEIncOfReqByOcList.add(obj14);
		

		PhysicalIncOfReqByOccGrpVO obj15 = new PhysicalIncOfReqByOccGrpVO(" Production, transportation, and material moving", 90, 3, 0, 7, 0);
		pEIncOfReqByOcList.add(obj15);

		PhysicalIncOfReqByOccGrpVO obj17 = new PhysicalIncOfReqByOccGrpVO("Production", 7, 13, 0, 0, 70);
		pEIncOfReqByOcList.add(obj17);
		

		PhysicalIncOfReqByOccGrpVO obj18 = new PhysicalIncOfReqByOccGrpVO("Transportation and material moving", 8, 69, 0, 23, 0);
		pEIncOfReqByOcList.add(obj18);
		

		PhysicalIncOfReqByOccGrpVO obj19 = new PhysicalIncOfReqByOccGrpVO("Management, business, and financial", 8, 69, 0, 23, 0);
		pEIncOfReqByOcList.add(obj19);
		
		return pEIncOfReqByOcList;
		
	}
	
	public ArrayList<PhysicalReqByOccGrpVO> getPhysEnvReqByOccGrpList() {
		ArrayList<PhysicalReqByOccGrpVO> pEReqByOcGrpList = new ArrayList<>();
		
	/*	
		PhysEnvReqByOccGrpVO obj1 = new PhysEnvReqByOccGrpVO("Architechture and Engineering", 60);
		pEReqByOcGrpList.add(obj1);
	
		PhysEnvReqByOccGrpVO obj4 = new PhysEnvReqByOccGrpVO("Teachers", 25);
		pEReqByOcGrpList.add(obj4);*/
		
		PhysicalReqByOccGrpVO obj10 = new PhysicalReqByOccGrpVO("Sales and related", 75);
		pEReqByOcGrpList.add(obj10);
		
		
		return pEReqByOcGrpList;
	}

	
}
